<?php
class SucculentArrangementInfoVo extends SzAbstractMySqlVo
{

    private $userId;
    private $formulaId;
    private $arrangeId;
    private $createTime;

    /**
     * Initialize SucculentArrangementInfoVo.
     *
     * @param $userId
     * @param $formulaId
     * @param $arrangeId
     * @param $createTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return SucculentArrangementInfoVo
     */
    public function __construct($userId, $formulaId, $arrangeId, $createTime, $isInsert = false) {
        $this->userId = $userId;
        $this->formulaId = $formulaId;
        $this->arrangeId = $arrangeId;
        $this->createTime = $createTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'SucculentArrangementInfoVo';
        $this->ormName = 'SucculentArrangementInfo';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'formulaId' => $this->getFormulaId(),
            'arrangeId' => $this->getArrangeId(),
            'createTime' => $this->getCreateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'formulaId' => $this->getFormulaId(),
            'arrangeId' => $this->getArrangeId(),
            'createTime' => $this->getCreateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getFormulaId(),
            $this->getArrangeId(),
            $this->getCreateTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getFormulaId()
    {
        return $this->formulaId;
    }

    public function setFormulaId($val)
    {
        $this->saveColumnStatus(1, $this->formulaId);
        $this->formulaId = $val;
    }

    public function getArrangeId()
    {
        return $this->arrangeId;
    }

    public function setArrangeId($val)
    {
        $this->saveColumnStatus(2, $this->arrangeId);
        $this->arrangeId = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(3, $this->createTime);
        $this->createTime = $val;
    }

}